/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Environment;

import Core.Vector2;
import Thing.Thing;

/**
 *
 * @author THINH
 */
public class Gravity extends Environment{
    public static final Vector2 g = new Vector2(0,2f);
    
    public Gravity(){
        
    }
    
    public void setGravity(Vector2 newG){
        this.g.set(newG);
    }
    
    public static void Enable(Thing thing){  
            thing.getVelocity().add(g);
        
    }
    public static void Enable(Thing thing,int power){  
            thing.getVelocity().add(new Vector2(0,power));
        
    }
    
}
